wayland: Remove self assignment
authorJonas Ådahl <jadahl@gmail.com>
Mon, 20 Mar 2017 13:37:10 +0000 (21:37 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 8 May 2017 21:42:31 +0000 (17:42 -0400)
Don't assign the value of a variable to itself. It was added just for
clarity, but it makes coverity complain, so remove it.

https://bugzilla.gnome.org/show_bug.cgi?id=780301

gdk/wayland/gdkwindow-wayland.c

index a6e4144da7de0a78a117984cacc8ad8b308263b8..0361aa36df5d1e8b3ba2b14042707a4384dec86e 100644 (file)
@@ -1779,19 +1779,14 @@ calculate_popup_rect (GdkWindow    *window,
     {
     case GDK_GRAVITY_STATIC:
     case GDK_GRAVITY_NORTH_WEST:
-      x = x;
-      y = y;
       break;
     case GDK_GRAVITY_NORTH:
       x -= geometry.width / 2;
-      y = y;
       break;
     case GDK_GRAVITY_NORTH_EAST:
       x -= geometry.width;
-      y = y;
       break;
     case GDK_GRAVITY_WEST:
-      x = x;
       y -= geometry.height / 2;
       break;
     case GDK_GRAVITY_CENTER:
@@ -1803,7 +1798,6 @@ calculate_popup_rect (GdkWindow    *window,
       y -= geometry.height / 2;
       break;
     case GDK_GRAVITY_SOUTH_WEST:
-      x = x;
       y -= geometry.height;
       break;
     case GDK_GRAVITY_SOUTH: